import config from "@/config"
import http from "@/utils/request"

export default {
	getDataAnalysis:{
		url: `${config.API_URL}/screen/data`,
		name: "数据分析",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},

	getSms:{
		url: `${config.API_URL}/login/sendSms`,
		name: "发送短信",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},

	token: {
		url: `${config.API_URL}/login/doLogin`,
		name: "登录获取TOKEN",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	getUserInfo: {
		url: `${config.API_URL}/jjUser/getJjUserInfo`,
		name: "获取当前用户信息",
		get: async function(){
			return await http.get(this.url);
		}
	},
	queryAllUser: {
		url: `${config.API_URL}/jjUser/queryAllUser`,
		name: "获取首页人员数据",
		get: async function(){
			return await http.get(this.url);
		}
	},
	logout: {
		url: `${config.API_URL}/login/logout`,
		name: "退出登录",
		post: async function(){
			return await http.post(this.url);
		}
	}
}
